package com.htu.courseService.common.exception;
import com.htu.courseService.common.enums.ResponseCodeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Created By JNNarrator on 2024/9/6 18:02
 * email: jiangn09@chinatelecom.cn
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BaseException extends RuntimeException {
	private ResponseCodeEnum responseCode;
	
	public BaseException(ResponseCodeEnum responseCode, String message) {
		super(message);
		
		setResponseCode(responseCode);
	}
	public BaseException(ResponseCodeEnum responseCode) {
		setResponseCode(responseCode);
	}
	
}

